package com.homework.Pets;

public class Penguins extends Pets {
    private String sex;

    public Penguins(String name, int age, int health, int love, String sex) {
        super(name, age, health, love);
        this.sex = sex;
    }

    public Penguins(String sex) {
        this.sex = sex;
    }

    public void show(){
        super.show();
        System.out.println("性别:" + this.sex);
    }
    @Override
    public void eat() {
        System.out.println("🐧吃🐟，喜爱度增加！");
        super.love += 10;
    }

    @Override
    public void toHospital() {
        System.out.println("🐧去医院，健康度增加！");
        super.health += 10;
    }
    public void play(){
        System.out.println("🐧滑冰");
    }
}
